from pyb import ADC

class PV:
	def __init__(self):
		self.adc = ADC('B0')

	def getVoltage(self):
		# 分压 1/3
		return round(self.adc.read() * 9900 / 4096)
